package com.octopussy.g3dview
{
import away3d.core.base.Mesh;
import away3d.materials.Material;

import mx.utils.StringUtil;

[Bindable]
public class ObjectEntry
{
    private var _name:String;
    private var _title:String;
    private var _url:String;

    public var defaultMaterial:Material;
    public var highlightMaterial:Material;
    private var _color:uint;
    public var obj:Mesh;

    private var _manager:ObjectManager;
    private var _interactable:Boolean;
    private var _description:String;

    public function ObjectEntry( name:String, url:String, title:String, description:String, color:uint, interactable:Boolean,
                                 manager:ObjectManager )
    {
        _name = name;
        _url = url;
        _title = title;
        _manager = manager;
        _description = description;
        _color = color;
        _interactable = interactable;
    }

    public function get name():String {
        return _name;
    }

    public function get title():String
    {
        return _title;
    }

    public function get url():String
    {
        return _url;
    }

    public function get manager():ObjectManager {
        return _manager;
    }


    public function get color():uint {
        return _color;
    }

    public function get interactable():Boolean {
        return _interactable;
    }


    public function get description():String {
        return _description;
    }
}
}